builder: Don't use g_slist_next
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Oct 2015 22:33:10 +0000 (18:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Oct 2015 10:14:57 +0000 (06:14 -0400)
We just use direct access to list->next all over the place.

gtk/gtkbuilder.c

index d6722a0cfb8c45b19aa35f906ffe85fe95a57942..869cdeaefd77ff4225e4694e621b0f5b013e1e2f 100644 (file)
@@ -597,14 +597,14 @@ _gtk_builder_add_object (GtkBuilder  *builder,
   g_hash_table_insert (builder->priv->objects, g_strdup (id), g_object_ref (object));
 }
 
-static inline void
+static void
 gtk_builder_take_bindings (GtkBuilder *builder,
                            GObject    *target,
                            GSList     *bindings)
 {
   GSList *l;
 
-  for (l = bindings; l; l = g_slist_next (l))
+  for (l = bindings; l; l = l->next)
     {
       BindingInfo *info = l->data;
       info->target = target;
@@ -926,7 +926,7 @@ gtk_builder_create_bindings (GtkBuilder *builder)
 {
   GSList *l;
 
-  for (l = builder->priv->bindings; l; l = g_slist_next (l))
+  for (l = builder->priv->bindings; l; l = l->next)
     {
       BindingInfo *info = l->data;
       GObject *source;